package com.chengzhi.eshopinventory.service;

import com.chengzhi.eshopinventory.entity.Inventory;

/**
 * 库存
 *
 * @author ruanchengzhi
 * @date 2021/4/1
 */
public interface InventoryService {

    Inventory getRedisInventory(Long inventoryId);

    void saveRedisInventory(Inventory inventory);

    void removeRedisInventory(Inventory inventory);

    Integer updateInventory(Inventory inventory);

    Inventory getInventoryById(Long inventoryId);
}
